package top.tangyh.lamp.care.vo.save;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

@Data
@Schema(description ="观察值入参类")
public class ObvInfoInVO {

    @Schema(description = "id",requiredMode = Schema.RequiredMode.REQUIRED)
//    @NotNull(message = "请输入id")
    private Long id;

    @Schema(description = "身高",requiredMode = Schema.RequiredMode.REQUIRED)
    private String height;

    @Schema(description = "体重",requiredMode = Schema.RequiredMode.REQUIRED)
    private String weight;

    @Schema(description = "体温",requiredMode = Schema.RequiredMode.REQUIRED)
    @Pattern(regexp = "^(([0-9]|[0-4][0-9])?(\\.[0-9]?)?|(50)|(50\\.0))$",message = "体温限制在0.0-50.0之间,保留一位小数")
    private String temp;

}
